package com.sws.yygh.hosp.service;

import com.sws.yygh.model.hosp.Department;
import com.sws.yygh.vo.hosp.DepartmentQueryVo;
import com.sws.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @program: Appointment-hospital-registration-system
 * @description: 科室接口服务
 * @author:
 * @create: 2022-07-18 14:17
 */
public interface DepartmentService {
    /**
     * 保存医院系统传递的科室信息到 mongodb中
     * @param paramMap
     */
    void save(Map<String, Object> paramMap);

    /**
     * 分页查询
     * @param page
     * @param limit
     * @param departmentQueryVo
     * @return
     */
    Page<Department> selectPage(int page, int limit, DepartmentQueryVo departmentQueryVo);

    /**
     * 删除科室
     * @param hoscode
     * @param depcode
     */
    void remove(String hoscode, String depcode);

    /**
     * 根据医院编号返回科室数据
     * @param hoscode
     * @return
     */
    List<DepartmentVo> findDeptTree(String hoscode);

    /**
     * 根据科室编号，和医院编号，查询科室名称
     * @param hoscode
     * @param depcode
     * @return
     */
    String getDepName(String hoscode, String depcode);
}
